package com.aaa.mapper;



import com.aaa.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PathVariable;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface UserMapper extends Mapper<User> {
    /**
     * 查询全部的用户
     * @param user
     * @return
     */
    List<User> findAllUser(User user);
    /**
     * 查询登录用户的全部信息
     */
    User findUser(@Param("username") String username);
}
